<table class="thTable">
    <thead>
        <tr>
            <th style="width:10%"><div><?php echo $this->lang->idAB;?></div></th>
            <th style="width:10%"><div><?php echo $this->lang->priAB;?></div></th>
            <th style="width:20%"><div><?php echo $this->lang->testreport->bugTitle;?></div></th>
            <th style="width:10%"><div><?php echo $this->lang->openedByAB;?></div></th>
            <th style="width:20%"><div><?php echo $this->lang->bug->resolvedBy;?></div></th>
            <th style="width:20%"><div><?php echo $this->lang->bug->resolvedDate;?></div></th>
            <th style="width:10%"><div><?php echo $this->lang->statusAB;?></div></th>
        </tr>
    </thead>
	<?php if($bugs):?>
		<tbody>
			<?php foreach($bugs as $bug):?>
			<tr>
				<td><div class="overflow"><?php echo sprintf('%03d', $bug->id) . html::hidden('bugs[]', $bug->id)?></div></td>
				<td><div class="overflow"><?php echo zget($this->lang->bug->priList, $bug->pri);?></div></td>
				<td><div class="overflow"><?php echo $bug->title?></div></td>
				<td><div class="overflow"><?php echo zget($users, $bug->openedBy);?></div></td>
				<td><div class="overflow"><?php echo zget($users, $bug->resolvedBy);?></div></td>
				<td><div class="overflow"><?php if($bug->resolvedDate != '0000-00-00 00:00:00') echo substr($bug->resolvedDate, 2);?></div></td>
				<?php $status = $this->processStatus('bug', $bug);?>
				<td><div class="overflow"><?php echo $status;?></div></td>
			</tr>
			<?php endforeach;?>
		</tbody>
	<?php else:?>
		<tr><td colspan='7'><div class="overflow"><?php echo $this->lang->testreport->none;?></div></td></tr>
	<?php endif?>
</table>
